<link type="text/css" rel="stylesheet" href="/public/js_calendar/dhtmlgoodies_calendar.css" media="screen"></LINK>
<script type="text/javascript" src="/public/js_calendar/dhtmlgoodies_calendar.js"></script>
<h2><?php echo $this->escape($this->content_title);?></h2>
<div class="form">
<form class="niceform"  action="/testsetup/<?php echo $this->action; ?>/id/<?php echo $this->item->id; ?>" method="post">
 <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
        <fieldset>
            <?php if(!empty($this->message)) :?>
            <dl id="message">
                <dt></dt>
                <dd><b style="color:red;"><?php echo $this->message;?></b></dd>
            </dl>
            <?php endif; ?>
            <dl>
                <dt><label for="question">Question</label></dt>
                <dd><input type="text" size="64" id="question" name="question" value="<?php echo $this->escape(trim($this->item->question));?>"></dd>
            </dl>        
            <dl>
                <dt><label for="answers">Answers</label></dt>
                <dd><input type="text" size="64" id="answers" name="answers" value="<?php echo $this->escape(trim($this->item->answers));?>"></dd>
            </dl>        
            <dl>
                <dt><label for="correct">Correct</label></dt>
                <dd><input type="text" size="34" id="correct" name="correct" value="<?php echo $this->escape(trim($this->item->correct));?>"></dd>
            </dl>        
            <dl>
                <dt><label for="complexity">Complexity</label></dt>
                <dd>
                    <select id="complexity" name="complexity" size="1">
                        <?php foreach($this->complexitys as $key=>$value) { ?> 
                        <option value="<?php echo $key;?>" <?php echo $this->escape(trim($this->item->complexity))==$key?' selected ':'';?>><?php echo $value;?></option>
                        <?php } ?>
                    </select>
                </dd>
            </dl>        
                    <dl class="submit">
            <a href="javascript:document.forms[0].submit();" class="bt_blue"><span class="bt_blue_lft"></span><strong>Save</strong><span class="bt_blue_r"></span></a>
            <a href="/testsetup" class="bt_blue"><span class="bt_blue_lft"></span><strong>Cancel</strong><span class="bt_blue_r"></span></a>
         </dl>
    </fieldset>
        
 </form>
 </div>